package com.apes.scm.masterdata.finance.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.finance.model.CrossDefiIC;
import com.apes.scm.masterdata.finance.model.CrossIC;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Creator: zouyc
 * CreateDate: 2020-06-10 9:15
 * Description:
 **/
public interface CrossDefICRepository extends CustomRepository<CrossDefiIC, String> {
    @Query(value = " SELECT a " +
            "   FROM CrossDefiIC a " +
            "  WHERE a.company.id in ('1001',:id) ")
    List<CrossDefiIC> findAllByCompanyIn(@Param("id") String id);

}
